package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.WarmClassDao;
import com.platform.entity.WarmClassEntity;
import com.platform.service.WarmClassService;

/**
 * 暖课课程Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-01 16:50:05
 */
@Service("warmClassService")
public class WarmClassServiceImpl implements WarmClassService {
    @Autowired
    private WarmClassDao warmClassDao;

    @Override
    public WarmClassEntity queryObject(Integer id) {
        return warmClassDao.queryObject(id);
    }

    @Override
    public List<WarmClassEntity> queryList(Map<String, Object> map) {
        return warmClassDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return warmClassDao.queryTotal(map);
    }

    @Override
    public int save(WarmClassEntity warmClass) {
        return warmClassDao.save(warmClass);
    }

    @Override
    public int update(WarmClassEntity warmClass) {
        return warmClassDao.update(warmClass);
    }

    @Override
    public int delete(Integer id) {
        return warmClassDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return warmClassDao.deleteBatch(ids);
    }

    @Override
    public void updateBatch(List<Integer> ids) {
        warmClassDao.updateBatch(ids);
    }
}
